CC = gcc
CFLAGS = -g -O2
OBJECTS = antsh.o \
          antsh_io.o \
          debug_api.o

shell.out : $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) -o shell.out

antsh.o : antsh.c types.h antsh_conf.h antsh.h antsh_io.h
	$(CC) $(CFLAGS) -c antsh.c

antsh_io.o : antsh_io.c types.h
	$(CC) $(CFLAGS) -c antsh_io.c

debug_api.o : debug_api.c types.h antsh.h debug_api.h
	$(CC) $(CFLAGS) -c debug_api.c



